decimal = eval(input("请输入一个数字："))

s = ""
num = decimal
while num>0:
    n,num = num%16,num//16
    s = (str(n) if n<10 else chr(n-10+ord('A'))) + s
print(decimal,"转换成十六进制为：",s)